/* =========================================================================
 * File: Utils.java$
 *
 * Covered by BSD License, which can be found at the root of the project.
 *
 * Copyright 2007 by Saverio Miroddi.
 * email: saverio.pub@gmail.com
 * All rights reserved.
 * =========================================================================
 */
package net.sf.cache4j.perfomance.test;

import java.util.Random;

public class Utils {
    public static final Random rnd = new Random(System.currentTimeMillis());
    
    public static final String[] getRandomKeys(int totKeys, int range) {
    	String[] keys = new String[totKeys];

    	for (int i = 0; i < totKeys; i++) {
        	int rndInt = rnd.nextInt(range); 
            keys[i] = Integer.toString(rndInt);
        }
    	
    	return keys;
    }
}
